package DARCOShared.requests;

public class GetCardFromQRScanRequest implements RequestBase, java.io.Serializable{
	private static final long serialVersionUID = 1L;
	
	private boolean toAuthenticate;
	private String cardSN;
	private String cardID;
	private String email;
	
	public GetCardFromQRScanRequest(){}
	
	//costruttore per la richiesta info
	public GetCardFromQRScanRequest(String sn,String id){
		this.toAuthenticate=false;
		this.email=null;
		this.cardSN=sn;
		this.cardID=id;
		}
	
	//costruttore per la richiesta di autenticazione della carta
	public GetCardFromQRScanRequest(String sn,String id,String email){
		this.toAuthenticate=true;
		this.email=email;
		this.cardSN=sn;
		this.cardID=id;
		}
	
	public String getCardSN(){return cardSN;}
	public String getCardID(){return cardID;}
	public String getEmail(){return email;}
	public boolean getToAuthenticate(){return toAuthenticate;}
	
	@Override
	public RequestType getRequestType() {
		return RequestType.GetCardFromQRScan;
	}
	

}
